package hb.software.holiday.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import hb.software.holiday.domain.Holiday;
import hb.software.holiday.service.HolidayManager;
import hb.software.web.spring.controller.GenericController;

/**
 * 
 * @ClassName: HolidayController
 * @Description: TODO
 * @author XuHuang
 * @date May 28, 2020 9:59:05 PM
 *
 */
@Controller
@RequestMapping("/holiday")
public class HolidayController extends GenericController<Holiday, Long, HolidayManager> {

	HolidayManager holidayManager;

	@Autowired
	public void setHolidayManager(HolidayManager holidayManager) {
		this.holidayManager = holidayManager;
		this.manager = this.holidayManager;
	}

	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/holiday/index";
		return result;
	}

}
